<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="ibox-tab">
                        <a class='ajax-goto on'>{$page_title}</a>
                    </div>
                    <div class="ibox-tools"><a href="javascript:void(0);" class="btn btn-xs btn-default btn-help-detail"  data-type="cst_customer"> <i class="fa fa-question-circle"> 操作说明</i></a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <form id="pagerForm" method="post" class="form-inline searchForm">
                            <div class="col-sm-12">
                                <div class="input-group">
                                    <input type="text" name="keywords" placeholder="输入关键字搜索" class="form-control">
                                </div>
                                <div class="input-group">
                                    <span class="input-group-btn"> <button type="button" class="btn btn-primary ajaxSearchForm"><i class="fa fa-search"></i> 搜索</button></span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-10">
                            <lqf_link><a class="btn btn-info ajax-open"  data-url="{:url('admin.Member/add')}"><i class="fa fa-plus"></i> 添加</a></lqf_link>
                            <lqf_link><a  class="btn btn-default btn-outline ajax-goto export"  target-form="form-inline" data-url="{:url('admin.Member/download',array('openstatus'=>'1'))}"><i class="fa fa-download"></i>导出</a></lqf_link>
                        </div>
                        <div class="col-sm-2 text-right">
                            <a href="javascript:void(0);" class="btn btn-default btn-outline btn-field-set" data-id="{$page_title|default=''}"> <i class="fa fa-columns"></i> 列</a>
                        </div>
                    </div>
                </div>
                <div class="ibox-content table-responsive">
                    <table class="table table-hover sorttable ajax-list-table" data-url="{:url('admin.Member/show_json')}" width="100%">
                        <thead>
                        <tr>
                            <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                            <th width="22"><span>ID</span></th>
                            <th width="80"><span>帐号</span></th>
                            <th width="60"><span>呢称</span></th>
                            <th width="50"><span>手机</span></th>
                            <th width="50"><span>邮箱</span></th>
                            <th width="50"><span>金额</span></th>
                            <th width="50"><span>积分</span></th>
                            <th width="80"><span>会员等级</span></th>
                            <th width="100" class="text-center"><span>最后登录</span></th>
                            <th width="120" class="text-center"><span>openID</span></th>
                            <th width="80" class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        </tbody>
                        <tfoot class="ibox-content">
                        <tr>
                            <td colspan="11" align="center"></td>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<script id="tableListTpl" type="text/html">
    <% for(var i=0;i<data.length;i++) { %>
    <tr>
        <td><input name="id" class="checkboxCtrlId" value="<%=data[i]['id']%>" type="checkbox"></td>
        <td><%=data[i]['id']%></td>
        <td>
            <a class="ajax-open" data-url="{:url('admin.Member/detail')}"  data-ids="{'id':'<%=data[i]['id']%>'}">
                <%=data[i]['username']%>
            </a>
        </td>
        <td><%=data[i]['nickname']%></td>
        <td><%=data[i]['mobile']%></td>
        <td><%=data[i]['email']%></td>
        <td><%=data[i]['member_money']%></td>
        <td><%=data[i]['member_integral']%></td>
        <td><%=data[i]['level_name']%></td>
        <td class="text-center"><%=data[i]['last_login']%></td>
        <td class="text-center"><%=data[i]['open_id']%></td>
        <td class="text-center">
                <lqf_link><a class="ajax-open" data-url="{:url('admin.Member/resetpwd')}"  data-ids="{'id':'<%=data[i]['id']%>'}">重置密码</a></lqf_link>
                <lqf_link><a class="ajax-open" data-url="{:url('admin.Member/edit')}"  data-ids="{'id':'<%=data[i]['id']%>'}">修改</a></lqf_link>
                <lqf_link><a class="ajax-del confirm" data-url="{:url('admin.Member/del')}" data-ids="{'id':'<%=data[i]['id']%>'}">删除</a></lqf_link>
        </td>
    </tr>
    <% } %>
</script>
<script type="text/javascript">
    $(document).ready(function () {
        turnPage(1);//页面加载时初始化分页
    });
</script>